package com.sghd.pojo.candy.skill.vo;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Allen
 * @date 2019/01/03
 */
public class SkillVo {
    private Integer debris;
    private Map<Integer, SkillLevelVo> skills;

    public Integer getDebris() {
        return debris;
    }

    public void setDebris(Integer debris) {
        this.debris = debris;
    }

    public Map<Integer, SkillLevelVo> getSkills() {
        return skills;
    }

    public void setSkills(Map<Integer, SkillLevelVo> skills) {
        this.skills = skills;
    }

    public static SkillVo vauleOf(int debris) {
        SkillVo skillVo = new SkillVo();
        skillVo.setDebris(debris);
        skillVo.setSkills(new HashMap<>());
        return skillVo;
    }
}
